OBJS1 := \
	main.o	Planning.o \
	SearchBasedPlan.o SNLP.o
OBJS2 := \
	featureterm.o featuretermcontainer.o \
	FT_NOOSexporter.o FT_NOOSparser.o \
	FT_subsumption.o FTKBase.o ontology.o sort.o SpecialTerm.o symbol.o Ufeatureterm.o

all: Planning

%.o: %.cpp
	c++ -c -g3 -O3 $< -o $@ -I../agentw -I../agentw/fterms -I/usr/X11R6/include

%.o: ../agentw/fterms/%.cpp
	c++ -c -g3 -O3 $< -o $@ -I../agentw -I../agentw/fterms -I/usr/X11R6/include


# dynamically linked binary:
Planning: $(OBJS1) $(OBJS2)
	c++ $^ -o $@ -lGL -lGLU -L/usr/X11R6/lib/ -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib

clean:
	rm -f Planning
	rm -f *.o
